package com.bpmn.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bpmn.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author rain
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
@Schema(description = "应用信息")
public class SysUser extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private String id;

    @NotBlank(message = "应用名称不能为空")
    @Schema(description = "应用名称")
    private String nickName;

    @NotBlank(message = "应用账号不能为空")
    @Schema(description = "应用账号")
    private String userName;

    @NotBlank(message = "password不能为空")
    @Schema(description = "应用密码")
    private String password;

    @Schema(description = "状态（0停用 1正常）")
    private Integer status;

}